Package collection

Functions

Link copied to clipboard
fun <T> List<T>.combination(n: Int): List<List<T>>

It generates the n-tuple combination of this collection of elements. Rosetta Code: Kotlin Combination